package com.team.employment.web.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.team.employment.model.entity.UserInfo;
import com.team.employment.model.enums.VerifyStatus;
import com.team.employment.web.admin.dto.UserQueryDto;

import java.util.List;

/**
* @author jade
* @description 针对表【user_info(用户信息表)】的数据库操作Service
* @createDate 2025-04-11 15:49:27
*/
public interface UserInfoService extends IService<UserInfo> {

    //使用电话号码和密码登录
    UserInfo login(String phone, String password);

    //注册
    void register(UserInfo userInfo);

    //多条件分页查询
    IPage<UserInfo> pageQueryInfo(IPage<UserInfo> page, UserQueryDto userQueryDto);

    void removeUserAndRelatedResume(Long id);

    String sendSmsCode(String phone);

    String resetPassword(String phone, String captcha, String newPassword);

    UserInfo getCurrentUser();
}